﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace dbPoll_Application.Models
{
    public class FieldsTemplate
    {
        public virtual int templateID { get; set; }
        public virtual String name { get; set; }
        public virtual IList<Field> fields { get; set; }

        public FieldsTemplate()
        {
            this.templateID = -1;
            this.name = String.Empty;
            this.fields = null;
        }

        public FieldsTemplate(String name)
        {
            this.templateID = -1;
            this.name = name;
            this.fields = new List<Field>();
        }

        public FieldsTemplate(String name, IList<Field> options)
        {
            this.templateID = -1;
            this.name = name;
            this.fields = options;
        }

        public FieldsTemplate(int templateID, String name, IList<Field> options)
        {
            this.templateID = templateID;
            this.name = name;
            this.fields = options;
        }

    }
}
